#  
# nginx源里的nginx1.8 配置只有fastcgi_params,没有fastcgi.conf  
# 具体服务中若引用fastcgi.conf，需添加 fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;  
# 

FROM centos:6

RUN rpm -ih http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm \
		&& yum -y install --nogpgcheck nginx \
		&& yum clean all

RUN sed -i '/conf.d/s/\/etc/\/data\/etc/' /etc/nginx/nginx.conf

EXPOSE 80 443

CMD ["nginx","-g","daemon off;"]